package cn.ddd.linktran.infrastructure.transform.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("url_map")
public class UrlMap {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "short_url",insertStrategy = FieldStrategy.NOT_NULL)
    private String shortUrl;

    @TableField(value = "long_url",insertStrategy = FieldStrategy.NOT_NULL)
    private String longUrl;

    @TableField(value = "compression_code",insertStrategy = FieldStrategy.NOT_NULL)
    private String compressionCode;

    @TableField(value = "description",insertStrategy = FieldStrategy.NOT_NULL)
    private String description;

    @TableField(value = "url_status",insertStrategy = FieldStrategy.NOT_NULL)
    private Byte urlStatus;

    @TableField(value = "create_time",insertStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @TableField(value = "edit_time",insertStrategy = FieldStrategy.NOT_NULL)
    private Date editTime;

    @TableField(value = "creator",insertStrategy = FieldStrategy.NOT_NULL)
    private String creator;

    @TableField(value = "editor",insertStrategy = FieldStrategy.NOT_NULL)
    private String editor;

    @TableField(value = "deleted",insertStrategy = FieldStrategy.NOT_NULL)
    private Byte deleted;

    @TableField(value = "version",insertStrategy = FieldStrategy.NOT_NULL)
    private Long version;
}
